package viz.model.flare.decoders
{
	import com.adobe.serialization.json.JSON;
	
	import viz.model.IDecodeable;


	public class JSON2StateMap implements IDecodeable
	{
		
		private var o:Object
		
		public function JSON2StateMap( o:Object ):void{
			this.o = o;
		}
		
		public function decode( ):Object{
			var a:Array = JSON.decode( String( o ) ) as Array;
			return new Untyped2StateMap( a ).decode();
		}
	}
	
}